package org.alesv.common.exceptions;

/**
 * Generic Exception for Service (or manager) layer.
 * 
 * @author asantamaria
 */
public class ServiceException extends Exception {

	private static final long serialVersionUID = 2638660112739479223L;

	/**
	 * Constructor to add a message.
	 * 
	 * @param message
	 *            i18n message code.
	 */
	public ServiceException(String message) {
		super(message);
	}

	/**
	 * Constructor to add a message.
	 * 
	 * @param message
	 *            i18n message code.
	 * @param exception
	 *            posible cause of this exception.
	 */
	public ServiceException(String message, Exception exception) {
		super(message, exception);
	}

}
